<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>IgH EtherCAT Master: foe_request.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">IgH EtherCAT Master
   &#160;<span id="projectnumber">1.5.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('foe__request_8c.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">foe_request.c File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>File-over-EtherCAT request functions.  
<a href="#details">More...</a></p>

<p><a href="foe__request_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:abb224b1d4a9cdbad17f5e3403e962784"><td class="memItemLeft" align="right" valign="top"><a id="abb224b1d4a9cdbad17f5e3403e962784"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="foe__request_8c.html#abb224b1d4a9cdbad17f5e3403e962784">EC_FOE_REQUEST_RESPONSE_TIMEOUT</a>&#160;&#160;&#160;3000</td></tr>
<tr class="memdesc:abb224b1d4a9cdbad17f5e3403e962784"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default timeout in ms to wait for FoE transfer responses. <br /></td></tr>
<tr class="separator:abb224b1d4a9cdbad17f5e3403e962784"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ad58b94538d29363f9132f222ef574a74"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="foe__request_8c.html#ad58b94538d29363f9132f222ef574a74">ec_foe_request_clear_data</a> (<a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *req)</td></tr>
<tr class="memdesc:ad58b94538d29363f9132f222ef574a74"><td class="mdescLeft">&#160;</td><td class="mdescRight">FoE request destructor.  <a href="#ad58b94538d29363f9132f222ef574a74">More...</a><br /></td></tr>
<tr class="separator:ad58b94538d29363f9132f222ef574a74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bf07dbd22177d67d2378d6d4849f82d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="foe__request_8c.html#a3bf07dbd22177d67d2378d6d4849f82d">ec_foe_request_init</a> (<a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *req, uint8_t *file_name)</td></tr>
<tr class="memdesc:a3bf07dbd22177d67d2378d6d4849f82d"><td class="mdescLeft">&#160;</td><td class="mdescRight">FoE request constructor.  <a href="#a3bf07dbd22177d67d2378d6d4849f82d">More...</a><br /></td></tr>
<tr class="separator:a3bf07dbd22177d67d2378d6d4849f82d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9c5c98c785cf2395cdf437fefedcdaf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="foe__request_8c.html#ac9c5c98c785cf2395cdf437fefedcdaf">ec_foe_request_clear</a> (<a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *req)</td></tr>
<tr class="memdesc:ac9c5c98c785cf2395cdf437fefedcdaf"><td class="mdescLeft">&#160;</td><td class="mdescRight">FoE request destructor.  <a href="#ac9c5c98c785cf2395cdf437fefedcdaf">More...</a><br /></td></tr>
<tr class="separator:ac9c5c98c785cf2395cdf437fefedcdaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21195eb686c217bbf70ba0cde620db52"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="foe__request_8c.html#a21195eb686c217bbf70ba0cde620db52">ec_foe_request_alloc</a> (<a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *req, size_t size)</td></tr>
<tr class="memdesc:a21195eb686c217bbf70ba0cde620db52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pre-allocates the data memory.  <a href="#a21195eb686c217bbf70ba0cde620db52">More...</a><br /></td></tr>
<tr class="separator:a21195eb686c217bbf70ba0cde620db52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0da867374db00df58d806644209cf1cb"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="foe__request_8c.html#a0da867374db00df58d806644209cf1cb">ec_foe_request_copy_data</a> (<a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *req, const uint8_t *source, size_t size)</td></tr>
<tr class="memdesc:a0da867374db00df58d806644209cf1cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copies FoE data from an external source.  <a href="#a0da867374db00df58d806644209cf1cb">More...</a><br /></td></tr>
<tr class="separator:a0da867374db00df58d806644209cf1cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1951f5cf5abf840d0a8458b11c7ce060"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="foe__request_8c.html#a1951f5cf5abf840d0a8458b11c7ce060">ec_foe_request_timed_out</a> (const <a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *req)</td></tr>
<tr class="memdesc:a1951f5cf5abf840d0a8458b11c7ce060"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks, if the timeout was exceeded.  <a href="#a1951f5cf5abf840d0a8458b11c7ce060">More...</a><br /></td></tr>
<tr class="separator:a1951f5cf5abf840d0a8458b11c7ce060"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9690708688a0d25c257deaf386fbc7b6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="foe__request_8c.html#a9690708688a0d25c257deaf386fbc7b6">ec_foe_request_timeout</a> (<a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *req, uint32_t timeout)</td></tr>
<tr class="memdesc:a9690708688a0d25c257deaf386fbc7b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the request timeout.  <a href="#a9690708688a0d25c257deaf386fbc7b6">More...</a><br /></td></tr>
<tr class="separator:a9690708688a0d25c257deaf386fbc7b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a476b47a2c569870be295e5bb70cf68df"><td class="memItemLeft" align="right" valign="top">uint8_t *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="foe__request_8c.html#a476b47a2c569870be295e5bb70cf68df">ec_foe_request_data</a> (<a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *req)</td></tr>
<tr class="memdesc:a476b47a2c569870be295e5bb70cf68df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer to the request's data.  <a href="#a476b47a2c569870be295e5bb70cf68df">More...</a><br /></td></tr>
<tr class="separator:a476b47a2c569870be295e5bb70cf68df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d657fe94180c35e0651134f3dda6876"><td class="memItemLeft" align="right" valign="top">size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="foe__request_8c.html#a1d657fe94180c35e0651134f3dda6876">ec_foe_request_data_size</a> (const <a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *req)</td></tr>
<tr class="memdesc:a1d657fe94180c35e0651134f3dda6876"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the data size.  <a href="#a1d657fe94180c35e0651134f3dda6876">More...</a><br /></td></tr>
<tr class="separator:a1d657fe94180c35e0651134f3dda6876"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1abc468b6ec2292415b084f15beeb3d4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="foe__request_8c.html#a1abc468b6ec2292415b084f15beeb3d4">ec_foe_request_read</a> (<a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *req)</td></tr>
<tr class="memdesc:a1abc468b6ec2292415b084f15beeb3d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prepares a read request (slave to master).  <a href="#a1abc468b6ec2292415b084f15beeb3d4">More...</a><br /></td></tr>
<tr class="separator:a1abc468b6ec2292415b084f15beeb3d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a097a26d460304eb8b84a9a9d21345048"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="foe__request_8c.html#a097a26d460304eb8b84a9a9d21345048">ec_foe_request_write</a> (<a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *req)</td></tr>
<tr class="memdesc:a097a26d460304eb8b84a9a9d21345048"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prepares a write request (master to slave).  <a href="#a097a26d460304eb8b84a9a9d21345048">More...</a><br /></td></tr>
<tr class="separator:a097a26d460304eb8b84a9a9d21345048"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>File-over-EtherCAT request functions. </p>

<p class="definition">Definition in file <a class="el" href="foe__request_8c_source.html">foe_request.c</a>.</p>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="ad58b94538d29363f9132f222ef574a74"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad58b94538d29363f9132f222ef574a74">&#9670;&nbsp;</a></span>ec_foe_request_clear_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_foe_request_clear_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FoE request destructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>FoE request. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="foe__request_8c_source.html#l00089">89</a> of file <a class="el" href="foe__request_8c_source.html">foe_request.c</a>.</p>

</div>
</div>
<a id="a3bf07dbd22177d67d2378d6d4849f82d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3bf07dbd22177d67d2378d6d4849f82d">&#9670;&nbsp;</a></span>ec_foe_request_init()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_foe_request_init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>file_name</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FoE request constructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>FoE request. </td></tr>
    <tr><td class="paramname">file_name</td><td>filename </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="foe__request_8c_source.html#l00057">57</a> of file <a class="el" href="foe__request_8c_source.html">foe_request.c</a>.</p>

</div>
</div>
<a id="ac9c5c98c785cf2395cdf437fefedcdaf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9c5c98c785cf2395cdf437fefedcdaf">&#9670;&nbsp;</a></span>ec_foe_request_clear()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_foe_request_clear </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>FoE request destructor. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>FoE request. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="foe__request_8c_source.html#l00078">78</a> of file <a class="el" href="foe__request_8c_source.html">foe_request.c</a>.</p>

</div>
</div>
<a id="a21195eb686c217bbf70ba0cde620db52"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a21195eb686c217bbf70ba0cde620db52">&#9670;&nbsp;</a></span>ec_foe_request_alloc()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_foe_request_alloc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Pre-allocates the data memory. </p>
<p>If the internal <em>buffer_size</em> is already bigger than <em>size</em>, nothing is done.</p>
<dl class="section return"><dt>Returns</dt><dd>Zero on success, otherwise a negative error code. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>FoE request. </td></tr>
    <tr><td class="paramname">size</td><td>Data size to allocate. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="foe__request_8c_source.html#l00111">111</a> of file <a class="el" href="foe__request_8c_source.html">foe_request.c</a>.</p>

</div>
</div>
<a id="a0da867374db00df58d806644209cf1cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0da867374db00df58d806644209cf1cb">&#9670;&nbsp;</a></span>ec_foe_request_copy_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_foe_request_copy_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const uint8_t *&#160;</td>
          <td class="paramname"><em>source</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Copies FoE data from an external source. </p>
<p>If the <em>buffer_size</em> is to small, new memory is allocated.</p>
<dl class="section return"><dt>Returns</dt><dd>Zero on success, otherwise a negative error code. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>FoE request. </td></tr>
    <tr><td class="paramname">source</td><td>Source data. </td></tr>
    <tr><td class="paramname">size</td><td>Number of bytes in <em>source</em>. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="foe__request_8c_source.html#l00140">140</a> of file <a class="el" href="foe__request_8c_source.html">foe_request.c</a>.</p>

</div>
</div>
<a id="a1951f5cf5abf840d0a8458b11c7ce060"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1951f5cf5abf840d0a8458b11c7ce060">&#9670;&nbsp;</a></span>ec_foe_request_timed_out()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int ec_foe_request_timed_out </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Checks, if the timeout was exceeded. </p>
<dl class="section return"><dt>Returns</dt><dd>non-zero if the timeout was exceeded, else zero. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>FoE request. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="foe__request_8c_source.html#l00164">164</a> of file <a class="el" href="foe__request_8c_source.html">foe_request.c</a>.</p>

</div>
</div>
<a id="a9690708688a0d25c257deaf386fbc7b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9690708688a0d25c257deaf386fbc7b6">&#9670;&nbsp;</a></span>ec_foe_request_timeout()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_foe_request_timeout </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>timeout</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the request timeout. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>FoE request. </td></tr>
    <tr><td class="paramname">timeout</td><td>Timeout in ms. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="foe__request_8c_source.html#l00176">176</a> of file <a class="el" href="foe__request_8c_source.html">foe_request.c</a>.</p>

</div>
</div>
<a id="a476b47a2c569870be295e5bb70cf68df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a476b47a2c569870be295e5bb70cf68df">&#9670;&nbsp;</a></span>ec_foe_request_data()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint8_t* ec_foe_request_data </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns a pointer to the request's data. </p>
<dl class="section return"><dt>Returns</dt><dd>Data pointer. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>FoE request. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="foe__request_8c_source.html#l00190">190</a> of file <a class="el" href="foe__request_8c_source.html">foe_request.c</a>.</p>

</div>
</div>
<a id="a1d657fe94180c35e0651134f3dda6876"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1d657fe94180c35e0651134f3dda6876">&#9670;&nbsp;</a></span>ec_foe_request_data_size()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">size_t ec_foe_request_data_size </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Returns the data size. </p>
<dl class="section return"><dt>Returns</dt><dd>Data size. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>FoE request. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="foe__request_8c_source.html#l00203">203</a> of file <a class="el" href="foe__request_8c_source.html">foe_request.c</a>.</p>

</div>
</div>
<a id="a1abc468b6ec2292415b084f15beeb3d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1abc468b6ec2292415b084f15beeb3d4">&#9670;&nbsp;</a></span>ec_foe_request_read()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_foe_request_read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Prepares a read request (slave to master). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>FoE request. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="foe__request_8c_source.html#l00214">214</a> of file <a class="el" href="foe__request_8c_source.html">foe_request.c</a>.</p>

</div>
</div>
<a id="a097a26d460304eb8b84a9a9d21345048"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a097a26d460304eb8b84a9a9d21345048">&#9670;&nbsp;</a></span>ec_foe_request_write()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void ec_foe_request_write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structec__foe__request__t.html">ec_foe_request_t</a> *&#160;</td>
          <td class="paramname"><em>req</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Prepares a write request (master to slave). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>FoE request. </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="foe__request_8c_source.html#l00228">228</a> of file <a class="el" href="foe__request_8c_source.html">foe_request.c</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_c1346cf4828efdd0d2baf0d391d01b77.html">master</a></li><li class="navelem"><a class="el" href="foe__request_8c.html">foe_request.c</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
